package eraserhead.xml.request;

import xml.Message;
import client.ServerAccess;

/**
 * Class for sending a Close request.
 * @author Michael Checca
 */
public class CloseRequest {
	/**
	 * Sends a CloseRequest to the server.
	 * @param sa {@link ServerAccess} to send request the {@link Message to}
	 * @param id Event id
	 */
	public static void send(ServerAccess sa, String id) {
		String xmlMessage = String.format("%s<closeRequest id=\"%s\"/></request>",
				Message.requestHeader(), id);
		sa.sendRequest(new Message(xmlMessage));
	}
}
